import {request} from '@/store/request.js'

/**
 * 用户登录
 */
export const appLogin = (loginForm) => {
	return request({
		url: '/auth/app/login',
		method: 'POST',
		data: loginForm
	})
}

/**
 * 用户退出登录
 */
export const appLogut = () => {
	return request({
		url: '/auth/app/logout',
		method: 'GET'
	})
}

/**
 * 获取用户新
 */
export const getUserInfo = () => {
	return request({
		url: `/member/art/app/getUserInfo`,
		method: 'GET'
	})
}


/**
 * 获取用户点赞和收藏
 */
export const getLikeAndCollect = () => {
	return request({
		url: `/art/web/art/collect/like/count`,
		method: 'GET'
	})
}